package utils

import (
	"crypto/sha256"
	"fmt"
)

func SHA256(text string) string {
	hash := sha256.New()
	hash.Write([]byte(text))
	cb := hash.Sum(nil)
	hash.Reset()
	hash.Write(cb)
	cb = hash.Sum(nil)
	return fmt.Sprintf("%x", cb)
}
